﻿<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>基于canvas的纯JS二维码生成插件</title>
	<script src="qrcode.min.js" ></script>
</head>
<body>
	<div id="qrcode">
	</div>
	<script type="text/javascript">
	let qrcode = new QRCode(document.getElementById("qrcode"), {
		width : 200,
		height : 200
	});
	//设置二维码内容
	qrcode.makeCode("http://172.20.10.2/pages/");
	</script>
</body>
</html>